

def paginate_queryset(queryset, request):
    offset = request.GET.get('offset', '0')
    limit = request.GET.get('limit', '10')

    offset, limit = int(offset), int(limit)

    return queryset[offset: offset + limit]